#include "EpollServer.hpp"
#include <string>


using namespace wxd;
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        std::cout << "Usage: " << argv[0] << " port" << std::endl;
        exit(USAGE_ERR);
    }
    u_int16_t server_port = std::stoi(argv[1]);

    std::unique_ptr<EpollServer> epoll_server_ptr = std::make_unique<EpollServer>(server_port);

    epoll_server_ptr->Init();
    
    epoll_server_ptr->Start();
    return 0;
}